package com.qf.shopping.dto.OperateLogDTO;

import com.qf.shopping.pojo.message.OperateLog;

public class OperateLogDTO {

    private long id;
    private long operateTime;//操作时间
    private String operateName;//操作人姓名
    private String operateDesc;//操作描述
    private String ip;//操作地址的IP

    public OperateLogDTO() {
    }

    public OperateLogDTO(OperateLog o){
        this.id=o.getId();
        this.operateTime=o.getOperateTime();
        this.operateDesc=o.getOperateDesc();
        this.ip=o.getIp();
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(long operateTime) {
        this.operateTime = operateTime;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }

    public String getOperateDesc() {
        return operateDesc;
    }

    public void setOperateDesc(String operateDesc) {
        this.operateDesc = operateDesc;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "OperteLogDTO{" +
                "id=" + id +
                ", operateTime=" + operateTime +
                ", operateName=" + operateName +
                ", operateDesc='" + operateDesc + '\'' +
                ", ip='" + ip + '\'' +
                '}';
    }
}
